﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200065D RID: 1629
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetBasicInfoScRsp : IMessage<GetBasicInfoScRsp>, IMessage, IEquatable<GetBasicInfoScRsp>, IDeepCloneable<GetBasicInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001517 RID: 5399
		// (get) Token: 0x06004992 RID: 18834 RVA: 0x000CA9EE File Offset: 0x000C8BEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetBasicInfoScRsp> Parser
		{
			get
			{
				return GetBasicInfoScRsp._parser;
			}
		}

		// Token: 0x17001518 RID: 5400
		// (get) Token: 0x06004993 RID: 18835 RVA: 0x000CA9F5 File Offset: 0x000C8BF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetBasicInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001519 RID: 5401
		// (get) Token: 0x06004994 RID: 18836 RVA: 0x000CAA07 File Offset: 0x000C8C07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetBasicInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004995 RID: 18837 RVA: 0x000CAA0E File Offset: 0x000C8C0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetBasicInfoScRsp()
		{
		}

		// Token: 0x06004996 RID: 18838 RVA: 0x000CAA18 File Offset: 0x000C8C18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetBasicInfoScRsp(GetBasicInfoScRsp other) : this()
		{
			this.curDay_ = other.curDay_;
			this.weekCocoonFinishedCount_ = other.weekCocoonFinishedCount_;
			this.exchangeTimes_ = other.exchangeTimes_;
			this.retcode_ = other.retcode_;
			this.nextRecoverTime_ = other.nextRecoverTime_;
			this.playerSettingInfo_ = ((other.playerSettingInfo_ != null) ? other.playerSettingInfo_.Clone() : null);
			this.gameplayBirthday_ = other.gameplayBirthday_;
			this.isGenderSet_ = other.isGenderSet_;
			this.lastSetNicknameTime_ = other.lastSetNicknameTime_;
			this.gender_ = other.gender_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004997 RID: 18839 RVA: 0x000CAAC4 File Offset: 0x000C8CC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetBasicInfoScRsp Clone()
		{
			return new GetBasicInfoScRsp(this);
		}

		// Token: 0x1700151A RID: 5402
		// (get) Token: 0x06004998 RID: 18840 RVA: 0x000CAACC File Offset: 0x000C8CCC
		// (set) Token: 0x06004999 RID: 18841 RVA: 0x000CAAD4 File Offset: 0x000C8CD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurDay
		{
			get
			{
				return this.curDay_;
			}
			set
			{
				this.curDay_ = value;
			}
		}

		// Token: 0x1700151B RID: 5403
		// (get) Token: 0x0600499A RID: 18842 RVA: 0x000CAADD File Offset: 0x000C8CDD
		// (set) Token: 0x0600499B RID: 18843 RVA: 0x000CAAE5 File Offset: 0x000C8CE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WeekCocoonFinishedCount
		{
			get
			{
				return this.weekCocoonFinishedCount_;
			}
			set
			{
				this.weekCocoonFinishedCount_ = value;
			}
		}

		// Token: 0x1700151C RID: 5404
		// (get) Token: 0x0600499C RID: 18844 RVA: 0x000CAAEE File Offset: 0x000C8CEE
		// (set) Token: 0x0600499D RID: 18845 RVA: 0x000CAAF6 File Offset: 0x000C8CF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ExchangeTimes
		{
			get
			{
				return this.exchangeTimes_;
			}
			set
			{
				this.exchangeTimes_ = value;
			}
		}

		// Token: 0x1700151D RID: 5405
		// (get) Token: 0x0600499E RID: 18846 RVA: 0x000CAAFF File Offset: 0x000C8CFF
		// (set) Token: 0x0600499F RID: 18847 RVA: 0x000CAB07 File Offset: 0x000C8D07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700151E RID: 5406
		// (get) Token: 0x060049A0 RID: 18848 RVA: 0x000CAB10 File Offset: 0x000C8D10
		// (set) Token: 0x060049A1 RID: 18849 RVA: 0x000CAB18 File Offset: 0x000C8D18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long NextRecoverTime
		{
			get
			{
				return this.nextRecoverTime_;
			}
			set
			{
				this.nextRecoverTime_ = value;
			}
		}

		// Token: 0x1700151F RID: 5407
		// (get) Token: 0x060049A2 RID: 18850 RVA: 0x000CAB21 File Offset: 0x000C8D21
		// (set) Token: 0x060049A3 RID: 18851 RVA: 0x000CAB29 File Offset: 0x000C8D29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerSettingInfo PlayerSettingInfo
		{
			get
			{
				return this.playerSettingInfo_;
			}
			set
			{
				this.playerSettingInfo_ = value;
			}
		}

		// Token: 0x17001520 RID: 5408
		// (get) Token: 0x060049A4 RID: 18852 RVA: 0x000CAB32 File Offset: 0x000C8D32
		// (set) Token: 0x060049A5 RID: 18853 RVA: 0x000CAB3A File Offset: 0x000C8D3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GameplayBirthday
		{
			get
			{
				return this.gameplayBirthday_;
			}
			set
			{
				this.gameplayBirthday_ = value;
			}
		}

		// Token: 0x17001521 RID: 5409
		// (get) Token: 0x060049A6 RID: 18854 RVA: 0x000CAB43 File Offset: 0x000C8D43
		// (set) Token: 0x060049A7 RID: 18855 RVA: 0x000CAB4B File Offset: 0x000C8D4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsGenderSet
		{
			get
			{
				return this.isGenderSet_;
			}
			set
			{
				this.isGenderSet_ = value;
			}
		}

		// Token: 0x17001522 RID: 5410
		// (get) Token: 0x060049A8 RID: 18856 RVA: 0x000CAB54 File Offset: 0x000C8D54
		// (set) Token: 0x060049A9 RID: 18857 RVA: 0x000CAB5C File Offset: 0x000C8D5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long LastSetNicknameTime
		{
			get
			{
				return this.lastSetNicknameTime_;
			}
			set
			{
				this.lastSetNicknameTime_ = value;
			}
		}

		// Token: 0x17001523 RID: 5411
		// (get) Token: 0x060049AA RID: 18858 RVA: 0x000CAB65 File Offset: 0x000C8D65
		// (set) Token: 0x060049AB RID: 18859 RVA: 0x000CAB6D File Offset: 0x000C8D6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Gender
		{
			get
			{
				return this.gender_;
			}
			set
			{
				this.gender_ = value;
			}
		}

		// Token: 0x060049AC RID: 18860 RVA: 0x000CAB76 File Offset: 0x000C8D76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetBasicInfoScRsp);
		}

		// Token: 0x060049AD RID: 18861 RVA: 0x000CAB84 File Offset: 0x000C8D84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetBasicInfoScRsp other)
		{
			return other != null && (other == this || (this.CurDay == other.CurDay && this.WeekCocoonFinishedCount == other.WeekCocoonFinishedCount && this.ExchangeTimes == other.ExchangeTimes && this.Retcode == other.Retcode && this.NextRecoverTime == other.NextRecoverTime && object.Equals(this.PlayerSettingInfo, other.PlayerSettingInfo) && this.GameplayBirthday == other.GameplayBirthday && this.IsGenderSet == other.IsGenderSet && this.LastSetNicknameTime == other.LastSetNicknameTime && this.Gender == other.Gender && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060049AE RID: 18862 RVA: 0x000CAC54 File Offset: 0x000C8E54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurDay != 0U)
			{
				num ^= this.CurDay.GetHashCode();
			}
			if (this.WeekCocoonFinishedCount != 0U)
			{
				num ^= this.WeekCocoonFinishedCount.GetHashCode();
			}
			if (this.ExchangeTimes != 0U)
			{
				num ^= this.ExchangeTimes.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.NextRecoverTime != 0L)
			{
				num ^= this.NextRecoverTime.GetHashCode();
			}
			if (this.playerSettingInfo_ != null)
			{
				num ^= this.PlayerSettingInfo.GetHashCode();
			}
			if (this.GameplayBirthday != 0U)
			{
				num ^= this.GameplayBirthday.GetHashCode();
			}
			if (this.IsGenderSet)
			{
				num ^= this.IsGenderSet.GetHashCode();
			}
			if (this.LastSetNicknameTime != 0L)
			{
				num ^= this.LastSetNicknameTime.GetHashCode();
			}
			if (this.Gender != 0U)
			{
				num ^= this.Gender.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060049AF RID: 18863 RVA: 0x000CAD71 File Offset: 0x000C8F71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060049B0 RID: 18864 RVA: 0x000CAD79 File Offset: 0x000C8F79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060049B1 RID: 18865 RVA: 0x000CAD84 File Offset: 0x000C8F84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ExchangeTimes != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.ExchangeTimes);
			}
			if (this.IsGenderSet)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.IsGenderSet);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GameplayBirthday != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.GameplayBirthday);
			}
			if (this.CurDay != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.CurDay);
			}
			if (this.LastSetNicknameTime != 0L)
			{
				output.WriteRawTag(64);
				output.WriteInt64(this.LastSetNicknameTime);
			}
			if (this.playerSettingInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.PlayerSettingInfo);
			}
			if (this.Gender != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Gender);
			}
			if (this.NextRecoverTime != 0L)
			{
				output.WriteRawTag(96);
				output.WriteInt64(this.NextRecoverTime);
			}
			if (this.WeekCocoonFinishedCount != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.WeekCocoonFinishedCount);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060049B2 RID: 18866 RVA: 0x000CAEBC File Offset: 0x000C90BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurDay != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurDay);
			}
			if (this.WeekCocoonFinishedCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WeekCocoonFinishedCount);
			}
			if (this.ExchangeTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ExchangeTimes);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.NextRecoverTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.NextRecoverTime);
			}
			if (this.playerSettingInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PlayerSettingInfo);
			}
			if (this.GameplayBirthday != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GameplayBirthday);
			}
			if (this.IsGenderSet)
			{
				num += 2;
			}
			if (this.LastSetNicknameTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.LastSetNicknameTime);
			}
			if (this.Gender != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Gender);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060049B3 RID: 18867 RVA: 0x000CAFC8 File Offset: 0x000C91C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetBasicInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurDay != 0U)
			{
				this.CurDay = other.CurDay;
			}
			if (other.WeekCocoonFinishedCount != 0U)
			{
				this.WeekCocoonFinishedCount = other.WeekCocoonFinishedCount;
			}
			if (other.ExchangeTimes != 0U)
			{
				this.ExchangeTimes = other.ExchangeTimes;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.NextRecoverTime != 0L)
			{
				this.NextRecoverTime = other.NextRecoverTime;
			}
			if (other.playerSettingInfo_ != null)
			{
				if (this.playerSettingInfo_ == null)
				{
					this.PlayerSettingInfo = new PlayerSettingInfo();
				}
				this.PlayerSettingInfo.MergeFrom(other.PlayerSettingInfo);
			}
			if (other.GameplayBirthday != 0U)
			{
				this.GameplayBirthday = other.GameplayBirthday;
			}
			if (other.IsGenderSet)
			{
				this.IsGenderSet = other.IsGenderSet;
			}
			if (other.LastSetNicknameTime != 0L)
			{
				this.LastSetNicknameTime = other.LastSetNicknameTime;
			}
			if (other.Gender != 0U)
			{
				this.Gender = other.Gender;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060049B4 RID: 18868 RVA: 0x000CB0D0 File Offset: 0x000C92D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060049B5 RID: 18869 RVA: 0x000CB0DC File Offset: 0x000C92DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num <= 16U)
					{
						if (num == 8U)
						{
							this.ExchangeTimes = input.ReadUInt32();
							continue;
						}
						if (num == 16U)
						{
							this.IsGenderSet = input.ReadBool();
							continue;
						}
					}
					else
					{
						if (num == 24U)
						{
							this.Retcode = input.ReadUInt32();
							continue;
						}
						if (num == 32U)
						{
							this.GameplayBirthday = input.ReadUInt32();
							continue;
						}
						if (num == 40U)
						{
							this.CurDay = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 74U)
				{
					if (num == 64U)
					{
						this.LastSetNicknameTime = input.ReadInt64();
						continue;
					}
					if (num == 74U)
					{
						if (this.playerSettingInfo_ == null)
						{
							this.PlayerSettingInfo = new PlayerSettingInfo();
						}
						input.ReadMessage(this.PlayerSettingInfo);
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.Gender = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.NextRecoverTime = input.ReadInt64();
						continue;
					}
					if (num == 112U)
					{
						this.WeekCocoonFinishedCount = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001D49 RID: 7497
		private static readonly MessageParser<GetBasicInfoScRsp> _parser = new MessageParser<GetBasicInfoScRsp>(() => new GetBasicInfoScRsp());

		// Token: 0x04001D4A RID: 7498
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001D4B RID: 7499
		public const int CurDayFieldNumber = 5;

		// Token: 0x04001D4C RID: 7500
		private uint curDay_;

		// Token: 0x04001D4D RID: 7501
		public const int WeekCocoonFinishedCountFieldNumber = 14;

		// Token: 0x04001D4E RID: 7502
		private uint weekCocoonFinishedCount_;

		// Token: 0x04001D4F RID: 7503
		public const int ExchangeTimesFieldNumber = 1;

		// Token: 0x04001D50 RID: 7504
		private uint exchangeTimes_;

		// Token: 0x04001D51 RID: 7505
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04001D52 RID: 7506
		private uint retcode_;

		// Token: 0x04001D53 RID: 7507
		public const int NextRecoverTimeFieldNumber = 12;

		// Token: 0x04001D54 RID: 7508
		private long nextRecoverTime_;

		// Token: 0x04001D55 RID: 7509
		public const int PlayerSettingInfoFieldNumber = 9;

		// Token: 0x04001D56 RID: 7510
		private PlayerSettingInfo playerSettingInfo_;

		// Token: 0x04001D57 RID: 7511
		public const int GameplayBirthdayFieldNumber = 4;

		// Token: 0x04001D58 RID: 7512
		private uint gameplayBirthday_;

		// Token: 0x04001D59 RID: 7513
		public const int IsGenderSetFieldNumber = 2;

		// Token: 0x04001D5A RID: 7514
		private bool isGenderSet_;

		// Token: 0x04001D5B RID: 7515
		public const int LastSetNicknameTimeFieldNumber = 8;

		// Token: 0x04001D5C RID: 7516
		private long lastSetNicknameTime_;

		// Token: 0x04001D5D RID: 7517
		public const int GenderFieldNumber = 10;

		// Token: 0x04001D5E RID: 7518
		private uint gender_;
	}
}
